<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    </head>
    <body>
        <script>
            document.write("可用宽度：" + screen.availWidth);
        </script>
    </body>
</html>